package com.uls.questionnaire.mapper;

import java.util.List;
import com.uls.questionnaire.domain.Surveyrules;

/**
 * 问卷规则设置Mapper接口
 * 
 * @author zxh
 * @date 2024-11-09
 */
public interface SurveyrulesMapper 
{
    /**
     * 查询问卷规则设置
     * 
     * @param ruleId 问卷规则设置主键
     * @return 问卷规则设置
     */
    public Surveyrules selectSurveyrulesByRuleId(Long ruleId);

    /**
     * 查询问卷规则设置列表
     * 
     * @param surveyrules 问卷规则设置
     * @return 问卷规则设置集合
     */
    public List<Surveyrules> selectSurveyrulesList(Surveyrules surveyrules);

    /**
     * 新增问卷规则设置
     * 
     * @param surveyrules 问卷规则设置
     * @return 结果
     */
    public int insertSurveyrules(Surveyrules surveyrules);

    /**
     * 修改问卷规则设置
     * 
     * @param surveyrules 问卷规则设置
     * @return 结果
     */
    public int updateSurveyrules(Surveyrules surveyrules);

    /**
     * 删除问卷规则设置
     * 
     * @param ruleId 问卷规则设置主键
     * @return 结果
     */
    public int deleteSurveyrulesByRuleId(Long ruleId);

    /**
     * 批量删除问卷规则设置
     * 
     * @param ruleIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSurveyrulesByRuleIds(Long[] ruleIds);
}
